package 练习;

import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.util.Arrays;

public class t2 {
    protected void show() {
        System.out.println(11);
    }

    private void tPrivate() {
        System.out.println("sad");
    }

}

class T222 extends t2 {
    @Override
    public void show() {
        super.show();
    }

    public static void main(String[] args) throws NoSuchMethodException, InvocationTargetException, IllegalAccessException {
        t2 t222 = new T222();
        Class<? extends t2> aClass = t222.getClass();
        Method tPrivate = aClass.getDeclaredMethod("yPrivate");
        tPrivate.setAccessible(true);
        Object invoke = tPrivate.invoke(t222);
    }
}
interface TestInterface{
    public static String name = "Sds";
    public static void changeName(){
    }
}
